package com.xcjh.emen;

import org.springframework.data.redis.connection.RedisGeoCommands;

public enum RedisDistance {
    M(RedisGeoCommands.DistanceUnit.METERS),
    KM(RedisGeoCommands.DistanceUnit.KILOMETERS),
    MI(RedisGeoCommands.DistanceUnit.MILES),
    FT(RedisGeoCommands.DistanceUnit.FEET);

    private final RedisGeoCommands.DistanceUnit meters;

    RedisDistance(RedisGeoCommands.DistanceUnit meters) {
        this.meters = meters;
    }

    public RedisGeoCommands.DistanceUnit getMeters() {
        return meters;
    }
}
